package com.njts.bean;

public class Score {  // 成绩表的由来是科目和学生n:m需要创建一个表 且他们有个属性(目的) 叫成绩。
    //为什么没有老师是因为老师是间接影响者,是通过科目和学生来打出成绩的。
    private int id; //序号
    private int studentId; //学生id
    //$
    private String studentName; //学生姓名
    private float scoreNumber; //成绩
    private int subjectId; //科目id
    //$
    private String subjectName; //科目姓名

    private String type; //成绩类型

    @Override
    public String toString() {
        return "Score{" +
                "id=" + id +
                ", studentId=" + studentId +
                ", studentName='" + studentName + '\'' +
                ", score=" + scoreNumber +
                ", subjectId=" + subjectId +
                ", subjectName='" + subjectName + '\'' +
                ", type='" + type + '\'' +
                '}';
    }

    public int getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(int subjectId) {
        this.subjectId = subjectId;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public float getScoreNumber() {
        return scoreNumber;
    }

    public void setScoreNumber(float scoreNumber) {
        this.scoreNumber = scoreNumber;
    }

}
